package org.dromara.finance.domain;

import org.dromara.common.mybatis.core.domain.BaseEntity;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.util.Date;

import java.io.Serial;

/**
 * 销售发票子表对象 sale_invoice_list
 *
 * @author xxy
 * @date 2025-08-19
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("sale_invoice_list")
public class SaleInvoiceList extends BaseEntity {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id")
    private Long id;

    /**
     * 销售发票主表ID
     */
    private Long saleInvoiceId;

    /**
     * 发票入账日期
     */
    private Date recordDate;

    /**
     * 销售发票号
     */
    private String saleInvoiceNum;

    /**
     * 相关凭证号
     */
    private String voucherNum;

    /**
     * 原币价税合计
     */
    private BigDecimal originalTotalAmount;

    /**
     * 原币无税金额
     */
    private BigDecimal originalAmount;

    /**
     * 原币税额
     */
    private BigDecimal originalTaxedAmount;

    /**
     * 币种
     */
    private Long currency;

    /**
     * 汇率
     */
    private BigDecimal exchangeRate;

    /**
     * 本币价税合计
     */
    private BigDecimal localTotalAmount;

    /**
     * 本币无税金额
     */
    private BigDecimal localAmount;

    /**
     * 本币税额
     */
    private BigDecimal localTaxedAmount;

    /**
     * 备注
     */
    private String remark;


}

